# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


# 竞彩胜平负的数据
class WinOrLoseItem(scrapy.Item):
    home = scrapy.Field() # 主队
    away = scrapy.Field() # 客队
    date = scrapy.Field() # 日期
    weekday = scrapy.Field() # e.x 周三001
    type = scrapy.Field() # 比赛种类
    no_let_win = scrapy.Field() # 不让球赢得赔率
    no_let_even = scrapy.Field() # 平的赔率
    no_let_lose = scrapy.Field() # 输的赔率
    let_ball = scrapy.Field()
    let_win = scrapy.Field()
    let_even = scrapy.Field()
    let_lose = scrapy.Field()

# 竞彩比分
class PointItem(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    weekday = scrapy.Field()
    type = scrapy.Field()
    one_zero = scrapy.Field()
    two_zero = scrapy.Field()
    two_one = scrapy.Field()
    three_zero = scrapy.Field()
    three_one = scrapy.Field()
    three_two = scrapy.Field()
    four_zero = scrapy.Field()
    four_one = scrapy.Field()
    four_two = scrapy.Field()
    five_zero = scrapy.Field()
    five_one = scrapy.Field()
    five_two = scrapy.Field()
    win_other = scrapy.Field()
    zero_zero = scrapy.Field()
    one_one = scrapy.Field()
    two_two = scrapy.Field()
    three_three = scrapy.Field()
    even_other = scrapy.Field()
    zero_one = scrapy.Field()
    zero_two = scrapy.Field()
    one_two = scrapy.Field()
    zero_three = scrapy.Field()
    one_three = scrapy.Field()
    two_three = scrapy.Field()
    zero_four = scrapy.Field()
    one_four = scrapy.Field()
    two_four = scrapy.Field()
    zero_five = scrapy.Field()
    one_five = scrapy.Field()
    two_five = scrapy.Field()
    lose_other = scrapy.Field()

# 半全场
class HalfItem(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    weekday = scrapy.Field()
    type = scrapy.Field()
    win_win = scrapy.Field()
    win_even = scrapy.Field()
    win_lose = scrapy.Field()
    even_win = scrapy.Field()
    even_even = scrapy.Field()
    even_lose = scrapy.Field()
    lose_win = scrapy.Field()
    lose_even = scrapy.Field()
    lose_lose = scrapy.Field()

# 总进球数
class TotalBallItem(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    weekday = scrapy.Field()
    type = scrapy.Field()
    zero = scrapy.Field()
    one = scrapy.Field()
    two = scrapy.Field()
    three = scrapy.Field()
    four = scrapy.Field()
    five = scrapy.Field()
    six = scrapy.Field()
    seven = scrapy.Field()

# 篮球胜负
class BasketballWinOrLose(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    weekday = scrapy.Field()
    type = scrapy.Field()
    no_let_win = scrapy.Field()  # 不让球赢得赔率
    no_let_lose = scrapy.Field()  # 输的赔率
    let_ball = scrapy.Field()
    let_win = scrapy.Field()
    let_lose = scrapy.Field()

# 篮球大小分
class BasketballPoint(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    weekday = scrapy.Field()
    type = scrapy.Field()
    point = scrapy.Field()
    big = scrapy.Field()
    small = scrapy.Field()

class Event(scrapy.Item):
    time = scrapy.Field()
    event = scrapy.Field()

# 足彩结果
class FootballResult(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    weekday = scrapy.Field()
    type = scrapy.Field()
    score = scrapy.Field() # 比分
    corner = scrapy.Field() # 角球
    half_goal = scrapy.Field()
    half_corner = scrapy.Field()
    events = scrapy.Field()

# 篮彩结果
class BasketballResult(scrapy.Item):
    home = scrapy.Field()
    away = scrapy.Field()
    date = scrapy.Field()
    type = scrapy.Field()
    points = scrapy.Field()  # 比分
    half_points = scrapy.Field() # 半场比分
    all_points = scrapy.Field()
    rangfen_result = scrapy.Field() # 上盘和下盘
    big_small_result = scrapy.Field() # 大分和小分
    q1 = scrapy.Field()
    q2 = scrapy.Field()
    q3 = scrapy.Field()
    q4 = scrapy.Field()

# 资讯
class LotteryNews(scrapy.Item):
    title = scrapy.Field()
    author = scrapy.Field()
    time = scrapy.Field()
    content = scrapy.Field()

# DS足球数据
class DSFootball(scrapy.Item):
    host = scrapy.Field()
    guest = scrapy.Field()
    date = scrapy.Field()
    league = scrapy.Field()
    euro_bet = scrapy.Field()  # 欧盘
    asia_bet = scrapy.Field()  # 亚盘
    big_small_bet = scrapy.Field()  # 大小球


